// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '班组台账',
        name: 'Teamledger',
        url: "/Teamledger/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TeamName":"","Duty":"","Phone":"","TeamNum":"","CreateTime":""};
    const editFormOptions = [[{"dataKey":"班组","data":[],"title":"班组台账","required":true,"field":"TeamName","type":"select"}],
                              [{"title":"负责人","required":true,"field":"Duty","type":"text"}],
                              [{"title":"联系方式","required":true,"field":"Phone","type":"text"}],
                              [{"title":"班组人数","required":true,"field":"TeamNum","type":"text"}],
                              [{"title":"创建时间","field":"CreateTime","type":"datetime"}]];
    const searchFormFields = {"TeamName":""};
    const searchFormOptions = [[{"dataKey":"班组","data":[],"title":"班组台账","field":"TeamName","type":"select"}]];
    const columns = [{field:'Id',title:'Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'TeamName',title:'班组台账',type:'string',bind:{ key:'班组',data:[]},width:110,require:true,align:'left'},
                       {field:'Duty',title:'负责人',type:'string',width:110,require:true,align:'left'},
                       {field:'Phone',title:'联系方式',type:'string',width:110,require:true,align:'left'},
                       {field:'TeamNum',title:'班组人数',type:'int',width:110,require:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}